package com.project.service;

import com.project.dao.IUserDao;
import com.project.dao.impl.UserDaoImpl;
import com.project.server.Request;
import com.project.server.Response;
import com.project.server.Servlet;

public class DelService implements Servlet {
    private IUserDao dao = new UserDaoImpl();
    public void service(Request request, Response response){
        dao.delById(Integer.parseInt(request.getParameter("id")));

        FindAllService findAll = new FindAllService();
        findAll.service(request,response);
    }
}
